package com.hand.wfive.fragment

import com.hand.wfive.R
import com.hand.wfive.adapter.FragmentAdapter
import com.hand.wfive.base.BaseFragment
import com.hand.wfive.entity.Params
import com.hand.wfive.fragment.sign.SignLibraryItemFragment
import kotlinx.android.synthetic.main.fragment_sign_library.*

class SignLibraryFragment : BaseFragment() {

    override fun getLayoutId() = R.layout.fragment_sign_library

    override fun initKotlinWidget() {
        qvp_sign_library.adapter =
            FragmentAdapter(
                childFragmentManager,
                arrayListOf(
                    SignLibraryItemFragment.load(Params.fileTypeSign),
                    SignLibraryItemFragment.load(Params.fileTypeStamp)
                ),
                arrayListOf("签名库", "签章库")
            )
        stl_sign_type.setViewPager(qvp_sign_library)
    }
}